home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Tampa Bay Amiga Group / TBAG - Tampa Bay Amiga Group's Disk of the Month #48 (1990)(Merlin's Software - Amiganuts United)(PD).zip / TBAG - Tampa Bay Amiga Group's Disk of the Month #48 (1990)(Merlin's Software - Amiganuts United)(PD).adf / Docs / TextCalc.Docs < prev    next >
Text File  |  1990-09-23  |  12KB  |  325 lines

  1. TextCalc   (c) 1990  John A. Samuels
  2.  
  3. Welcome to TextCalc, the text file calculator!  
  4.  
  5. If you're reading this (and you are, aren't you?) you should have already
  6. tried the tutorial and you probably know most of what you need to know.
  7.  
  8. Here are some things that you don't know yet...
  9.  
  10. -  COPYRIGHT  -
  11.  
  12. This program and the associated text files are copyright 1990 by:
  13.  
  14.                 John A. Samuels
  15.                 2121 South 12th Street
  16.                 Allentown, PA  18103
  17.                   FAX:  (215) 797-4088
  18.                 PLink:  BATMAN
  19.                   CIS:  71066,307
  20.  
  21. -  WARRANTY  -
  22.  
  23. None whatsoever!  This program does not work, will not work and never did
  24. work the way it was intended.  I couldn't care less if TextCalc causes your
  25. Amiga to explode and take a city block with it.  
  26.  
  27. -  HERE, THERE, AND EVERYWARE  -  
  28.  
  29. You are hereby granted a lifetime site license to use and abuse TextCalc as
  30. you see fit.  Of course, the above-mentioned lifetime may be abbreviated if
  31. you steal my code or make money off of the fruits of my labor by selling this
  32. program for profit.  So don't do it. 
  33.  
  34. That being said, if this program proves so valuable to you that you can't
  35. remember what life was like Before TextCalc (B.T.), you should immediately
  36. send me a certified check for one-half of your total assets (please don't
  37. send farm animals through the U.S. Mail).
  38.  
  39. -  COPY PROTECTION  -
  40.  
  41. You will need the code wheel that was included with this program's packaging.
  42. Then copy the 17th character of the 15th word on the 13th line of the 11th
  43. page of the manual.  You will have to type it three times.  Then, turn off
  44. your Amiga and, with your index finger in your left nostril, recite all of
  45. the words to Marty Robbins' "El Paso".  Then turn your Amiga back on and
  46. gently kick your dog.  You are now ready to use TextCalc.
  47.  
  48. -  DEDICATION  -
  49.  
  50. TextCalc is dedicated to Roman Polanski who, as I understand it, invented the
  51. Roman Numeral - thereby making all numeric calculations possible.
  52.  
  53. -  STARTING THE PROGRAM  -
  54.  
  55. Sorry, no icons.  From a CLI or Shell, start TextCalc like so:
  56.  
  57.     run tc <filename> [precision]
  58.  
  59. <filename> is the path and name of a text file.
  60.  
  61. [precision] is optional.  It's the number of digits you want to the right of
  62. the decimal point in your calculations.  The precision can be any number from
  63. zero (0) to six (6).  It defaults to '2' for all you money-minded people out
  64. there.
  65.  
  66. Not to belabor the point, but here's an example of how to start TextCalc:
  67.  
  68.     run tc df1:documents/cockroach.letter 4
  69.     
  70. This will run 'tc' and tell it to load the file "cockroach.letter" from the
  71. directory "documents" on the device "df1:".  TextCalc will use and display
  72. four (4) digits to the right of the decimal point.
  73.  
  74. Another example:
  75.  
  76.     run tc fred
  77.     
  78. This will run 'tc' and tell it to load the file "fred" from the current
  79. directory.  Since no precision was supplied the precision will default to
  80. 'two'.
  81.  
  82. You should always 'run' it so that you can multitask.
  83.  
  84. -  WHAT HAPPENS NEXT?  -
  85.  
  86. Assuming you did everything correctly, you'll see the first 18 lines of your
  87. document on the screen.
  88.  
  89. To see the next 18 lines, click on the gadget that has the right-pointing
  90. arrow in it that's on the bottom of the screen near the center.
  91.  
  92. To see the previous 18 lines, click on the left-arrow gadget that's to the
  93. left of the right-arrow gadget.
  94.  
  95. If, for some reason, the text you're looking at is not the text you wanted to
  96. look at you'll have to exit the program and supply a different (correct) file
  97. name on the command line.
  98.  
  99. -  QUITTING THE PROGRAM  -
  100.  
  101. Click on the close box.  If you've never used an Amiga before and you don't
  102. know what the close box is, read that pretty four-color manual that was in
  103. the carton.
  104.  
  105. -  WHAT KIND OF FILES WILL WORK?  -
  106.  
  107. Anything, I guess.  The less of a plain old ASCII text file it is, the more
  108. weird stuff you'll see on the screen but you can still use TextCalc.  It's
  109. very indiscriminate.
  110.  
  111. -  HOW CAN I CALCULATE NUMBERS WITHIN THE TEXT?  -
  112.  
  113. Glad you asked.
  114.  
  115. A simple arithmetic calculation requires two numbers.  Y'know, like a
  116. numerator and a denominator in a division.  I seem to remember from fourth
  117. grade that they were called "operands".  Even if they aren't, for our
  118. purposes we'll call them the "left operand" and the "right operand".  Ok?
  119.  
  120. To establish the left operand, click on any number in your document with the
  121. LEFT mouse button.  
  122.  
  123. If TextCalc agrees that it truly IS a number, it will turn red.  It will also
  124. appear in two more places - the "Left Button" string gadget and the "L Click
  125. Sum" string gadget.  More on the "L Click Sum" string gadget later.
  126.  
  127. To establish the right operand, click on any number in your document with the
  128. RIGHT mouse button.
  129.  
  130. If it's a number by TextCalc's definition, it will turn red and white.  It
  131. will also appear in the "Right Button" string gadget.
  132.  
  133. Now choose a sign.  In other words, choose what operation you want to perform
  134. on the left and right operands.  It can be addition, subtraction,
  135. multiplication or division.
  136.  
  137. To choose a sign, click on one of the four red "sign" gadgets located between
  138. the "Left Button" and "Right Button" gadgets.
  139.  
  140. The current sign is displayed just above the four sign gadgets.
  141.  
  142. For multiplication, a '*' is displayed and for division, a '/' is displayed. 
  143. If you know why, you may now smile smugly to yourself.
  144.  
  145. Finally, to force TextCalc to perform your requested calculation, click on
  146. that big purple and yellow "equals" gadget.
  147.  
  148. The result will immediately be printed in the "L-R Result" string gadget.  It
  149. will also be added to whatever was in the "Running Total" string gadget and
  150. the new running total will be displayed in the "Running Total" string gadget.
  151.  
  152. -  SO WHAT?  -
  153.  
  154. Well, for one thing, you don't have to change EVERYTHING when you want to do
  155. another calculation.  
  156.  
  157. Let's say you want to multiply 15 X 30 and then 15 X 40.  Let's say all those
  158. numbers are in the file you've loaded into TextCalc.
  159.  
  160. Click on the '15' with the Left Button.  Click on the '30' with the Right
  161. Button.  Click on the 'X' (multiplication) gadget.  Click on the 'equals'
  162. gadget.  '450' will appear in the "L-R Result" string gadget.
  163.  
  164. Now, just click on '40' with the Right Button.  Then click the 'equals'
  165. gadget.  '600' will appear in the "L-R Result" string gadget.  And '1050'
  166. will be in the "Running Total" gadget.
  167.  
  168. Now, if you wanted to divide '15' by '40' all you would have to do is click
  169. on the 'divide' gadget, then click on the 'equals' gadget. 
  170.  
  171. You don't have to re-click on a number or sign if it's going to remain the
  172. same for the next calculation(s).
  173.  
  174. -  WHAT'S THE L CLICK SUM?  -
  175.  
  176. It's a way for you to do quick addition.
  177.  
  178. Every number you click on with the Left Button will be added to the number
  179. that's in the "L Click Sum" string gadget and the new sum will be printed in
  180. the "L Click Sum" string gadget.
  181.  
  182. So to add up a bunch of numbers, just click click click with the Left Button,
  183. then check the answer in the "L Click Sum" string gadget.
  184.  
  185. You may now ask why there is an 'addition' sign gadget along with the other
  186. three signs.  I don't know - symmetry, I guess.
  187.  
  188. -  CLEARING NUMBERS  -
  189.  
  190. Each string gadget has a "clear" gadget underneath it.  It's blue and has a
  191. yellow 'c' inside of it.
  192.  
  193. Clicking on it will cause the number inside that string gadget to be zero.
  194.  
  195. -  STRING GADGETS  -
  196.  
  197. I have now used the phrase "string gadget" 16 times so far in this text.  I'm
  198. trying to subtly communicate that these are...string gadgets.
  199.  
  200. If you don't know how to use "string gadgets", read that glossy book that was
  201. in the carton with your Amiga.
  202.  
  203. In TextCalc, the string gadgets do everything you'd want them to do.  You can
  204. edit whatever's in them, delete their contents (although the "clear" gadgets
  205. will do that quicker), and, most important, you can type numbers into them.
  206.  
  207. This means that if you need to use some number that's not in your document,
  208. you can just type it in to the applicable string gadget.
  209.  
  210. TextCalc will use whatever's in its string gadgets for its calculations.
  211.  
  212. Of course, this works in the "L Click Sum" and "Running Total" string gadgets
  213. too so these totals do not have to start at zero and do not have to only
  214. contain TextCalc generated numbers.
  215.  
  216. Naturally, you can use any of the Amiga's standard editing keys or key
  217. sequences to alter the contents of these string gadgets.  Right-Amiga-X
  218. clears it, DEL deletes characters, etc.
  219.  
  220. -  WHAT IF I TYPE "MARILYN QUAYLE" INTO A STRING GADGET?  -
  221.  
  222. Any non-numeric stuff in a string gadget will make that string gadget's
  223. contents evaluate as "zero".  For example, if you type "Marilyn Quayle" into
  224. the "Left Button" string gadget, it will equal zero.  If, in this example,
  225. you had a '15' in the "Right Button" string gadget and "multiplication" was
  226. the active "sign" and you clicked the "equals" gadget, your "L-R Result"
  227. (i.e. the result of the multiplication) would be zero.
  228.  
  229. -  THE LOG FILE  -
  230.  
  231. None of this would be that useful if not for the "log" file.
  232.  
  233. TextCalc writes every calculation into a file called "tc.log".  When you quit
  234. TextCalc, you'll find "tc.log" in RAM:
  235.  
  236. You can read, print, edit or delete the log file.
  237.  
  238. And, of course, you can load it into TextCalc and perform calculations on it.
  239.  
  240. If ram:tc.log exists when you run TextCalc, any calculations will be appended
  241. to the log file.
  242.  
  243. So if you want to start the log file anew, you'll have to delete it before
  244. running TextCalc.
  245.  
  246. Each "L Click Sum" operation is recorded in "tc.log".
  247.  
  248. And each time you click the "equals" gadget, the operation is recorded in
  249. "tc.log".
  250.  
  251. It's like an electronic paper tape.
  252.  
  253. -  HOW DOES TextCalc RECOGNIZE A NUMBER?  -
  254.  
  255. To be recognized as a number, a character string in your text file must
  256. contain nothing but the following characters:
  257.  
  258. 0 1 2 3 4 5 6 7 8 9 ( ) + - C % $ , .
  259.  
  260. TextCalc will go backwards from where you clicked until it finds an "illegal"
  261. character and then forwards from where you clicked.  Everything in between
  262. will be considered part of the number.
  263.  
  264. It will not recognize a Yen symbol, a Pound symbol or a Lire symbol, for
  265. instance, because I couldn't figure out how to generate any of those
  266. characters from my keyboard.  Thus, TextCalc stands as yet another example of
  267. why it's great to be an American.  It WILL recognize Canadian Dollars but
  268. they will be worth less than the U.S. ones.  Oh, relax, I'm just kidding, eh?
  269.  
  270. For you British chaps (hi Frank!), TextCalc will NOT recognize a comma as the
  271. decimal point (do you call it a "decimal point" or, perhaps, a "decimal
  272. sliver"?)  Commas are transparent to TextCalc.  If this generates sufficient
  273. outcry from our friends across the Atlantic, I'll add a command line option
  274. to facilitate this.
  275.  
  276. When in doubt, just click.  If TextCalc doesn't like what you've clicked on
  277. it will just ignore you.  Just like your wife.
  278.  
  279. Don't forget...if TextCalc adamantly refuses to process something that you've
  280. clicked on in your text file, you can always resort to typing into one of the
  281. string gadgets in order to have it participate in your calculation.
  282.  
  283. -  WILL IT WORK ON THE AMIGA 3000?  -
  284.  
  285. I have no idea.  Send me one, freight prepaid, and I'll let you know.
  286.  
  287. -  WILL IT WORK WITH AMIGADOS 2.0?  -
  288.  
  289. Don't know that either.
  290.  
  291. -  WILL IT WORK ON MY PC OR MAC AT THE OFFICE?  -
  292.  
  293. No.  Neither will anything else of consequence.
  294.  
  295. -  DOES IT MULTITASK?  -
  296.  
  297. Yeah.
  298.  
  299. -  WHY SHOULD I USE IT?  -
  300.  
  301. Because WordPerfect's math is too complicated and from a cursory reading of
  302. the manual it appears that all numbers have to be in columns before you can
  303. do math on them.  And who among us knows how to make columns in WordPerfect?
  304.  
  305. And because UEdit, the exquisite text editor by Rick Stiles, will only do
  306. addition and subtraction.  Of course, if Rick Stiles reads this, he'll put
  307. out the 3,000th revision of UEdit which will do multiplication and division
  308. and put TextCalc and its humble author to shame.
  309.  
  310. -  WHAT SHOULD I USE IT FOR?  -
  311.  
  312. Well, I don't know.  At home, I use it to add up columns of baseball
  313. statistics that I download from USA Today's bulletin board.  At work I use it
  314. to do math on numbers in documents that I'm writing because I can never find
  315. my calculator and, unlike any of the Amiga's calculator programs I've seen,
  316. you don't have to actually type in the numbers to calculate - just click on
  317. them!
  318.  
  319. What YOU use it for is your own business so long as it doesn't interfere with
  320. the health or livelihood of those around you.
  321.  
  322. -  WHEN WILL THIS DOCUMENT EVER END?!?  -
  323.  
  324. Now.
  325.